package com.onlinesshop.mall.pojo;

import java.io.Serializable;
import java.util.List;

/** 商品表信息
 * @author yuyan
 */
public class Product implements Serializable {
    private int id;
    private int category_id;    //分类表 id
    private String name;        //商品名称
    private String tetail;      //描述
    private String main_image;  //主图片地址
    private int images_id;      //图片表 id
    private double price;       //价格
    private int stock;          //库存数量
    private int status;         //商品状态 1-在售 2-下架 3-删除
    private String create_time; //上架时间
    private String update_time; //更新时间
    private Category category;  //商品分类
    private List<Images> images;    //图片

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCategory_id() {
        return category_id;
    }

    public void setCategory_id(int category_id) {
        this.category_id = category_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTetail() {
        return tetail;
    }

    public void setTetail(String tetail) {
        this.tetail = tetail;
    }

    public String getMain_image() {
        return main_image;
    }

    public void setMain_image(String main_image) {
        this.main_image = main_image;
    }

    public int getImages_id() {
        return images_id;
    }

    public void setImages_id(int images_id) {
        this.images_id = images_id;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", category_id=" + category_id +
                ", name='" + name + '\'' +
                ", tetail='" + tetail + '\'' +
                ", main_image='" + main_image + '\'' +
                ", images_id=" + images_id +
                ", price=" + price +
                ", stock=" + stock +
                ", status=" + status +
                ", create_time='" + create_time + '\'' +
                ", update_time='" + update_time + '\'' +
                ", category=" + category +
                ", images=" + images +
                '}';
    }
}
